package com.hsgene.medicine.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @desc:
 * @author: 江承良
 * @date: 2018/8/15 10:31
 */
public enum MedicineErrorCode implements ErrorCode {
    DRUG_PAGE_ERROR(15001, "DRUG_PAGE_ERROR", "获取药物列表出错"),
    ADD_GENETIC_MEDICINE_ERROR(15002, "ADD_GENETIC_MEDICINE_ERROR", "添加基因检测药物出错"),
    GENETIC_MEDICINE_PAGE_ERROR(15003, "GENETIC_MEDICINE_PAGE_ERROR", "基因检测药物列表出错"),
    QUERY_GENETIC_MEDICINE_ERROR(15004, "QUERY_GENETIC_MEDICINE_ERROR", "查询基因检测药物信息出错"),
    UPDATE_GENETIC_MEDICINE_ERROR(15005, "UPDATE_GENETIC_MEDICINE_ERROR", "修改基因检测药物信息出错"),
    DELETE_GENETIC_MEDICINE_ERROR(15006, "DELETE_GENETIC_MEDICINE_ERROR", "删除基因检测药物信息出错"),
    ADD_GENETIC_CANCER_MEDICINE_ERROR(15007, "ADD_GENETIC_CANCER_MEDICINE_ERROR", "添加癌症药物出错"),
    GENETIC_CANCER_MEDICINE_PAGE_ERROR(15008, "GENETIC_CANCER_MEDICINE_PAGE_ERROR", "癌症药物列表出错"),
    QUERY_GENETIC_CANCER_MEDICINE_ERROR(15009, "QUERY_GENETIC_CANCER_MEDICINE_ERROR", "查询癌症药物信息出错"),
    DELETE_GENETIC_CANCER_MEDICINE_ERROR(150010, "DELETE_GENETIC_CANCER_MEDICINE_ERROR", "删除癌症药物信息出错"),
    UPDATE_GENETIC_CANCER_MEDICINE_ERROR(150011, "UPDATE_GENETIC_CANCER_MEDICINE_ERROR", "更新癌症药物信息出错"),
    QUERY_DA_CANCER_ERROR(150012, "QUERY_DA_CANCER_ERROR", "查询疾病信息出错");

    private final int code;

    private final String message;

    private final String description;

    MedicineErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
